<?php
$ArCustomers = Dracosys::getSessionValue(SESSION_INTERFACE, 'CustomerList');
if (!empty($ArCustomers)):
    foreach ($ArCustomers as $Customer):
?>
        <tr>
            <td><?= $Customer->getCustomerName() ?></td>
            <td><?= $Customer->getArGeneralData('StEmail') ?></td>
            <td><?= $Customer->getArGeneralData('EnStatus') ?></td>
            <td><?= $Customer->getArGeneralData('EnTipoCliente') ?></td>
            <td><?= $Customer->getFinanceiro()->getPlano()->getStNome() ?></td>
            <td>
                <a href="<?= DRA_URL ?>cliente/visualizar-cliente/id/<?= $Customer->getIDCliente() ?>">
                    <img src="<?= DRA_VIEW_URL ?>/images/descricao.png" alt="Visualizar" />
                </a>
            </td>
            <td>
                <a href="<?= DRA_URL ?>financeiro/lancar-pagamento-cliente/id/<?= $Customer->getFinanceiro()->getIDFinanceiro() ?>">
                    <img src="<?= DRA_VIEW_URL ?>/images/lancar_pagamento.png" alt="Lançar Pagamentos" />
                </a>
            </td>
        </tr>
<?php
    endforeach;
else:
?>
        <tr class="nodata">
            <td colspan="7">
                Todos os clientes estão em dia.
            </td>
        </tr>
<?php
endif;
?>